/*
Copyright (C) 2009  Raymond Jeon
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/


#ifndef __GL_SMMP_FUNC_H__
#define __GL_SMMP_FUNC_H__


#include "gl_smmp_session.h"
#include "gl_lib_command.h"

extern glcommand_	GlSmmpCommand[];




void glSmmpFuncError(glsmmpsession_ *gsn, int iRet);
void GlConfigViewBlockData(glsmmpsession_ *gsn, char *szName, char *szVal, char *szArg);

int GlConfigAddBlockData(char *szName, char *szVal, char *szArg);
int GlConfigDelBlockData(char *szName, char *szVal, char *szArg);
int GlConfigAddBlockMimeHeader(char *szName, char *szVal, char *szArg);
int GlConfigDelBlockMimeHeader(char *szName, char *szVal, char *szArg);
int GlConfigAddBlockMimeHeaderMember(char *szName, char *szVal, char *szArg);
int GlConfigDelBlockMimeHeaderMember(char *szName, char *szVal, char *szArg);
int GlConfigAddBlockLinkList(char *szName, char *szVal, char *szArg, gllink_ **ll);
int GlConfigDelBlockLinkList(char *szName, char *szVal, char *szArg, gllink_ **ll);

void GlUserConfigViewBlockData(glsmmpsession_ *gsn, char *szDir, char *szName, char *szVal, char *szArg);
int GlUserConfigAddBlockData(char *szDir, char *szName, char *szVal, char *szArg);
int GlUserConfigDelBlockData(char *szDir, char *szName, char *szVal, char *szArg);


int GlMailConfigSetFieldString(char *szName, char *szVal, char **pConfig);
int GlMailConfigSetFieldNum(char *szName, int iVal, int *iConfig);
int GlMailConfigSetFieldBool(char *szName, BOOL bVal, BOOL *bConfig);




#endif	// __GL_SMMP_FUNC_H__


